/**
 * That package contain connection interface.
 */
package org.extdev.connection;

import java.io.InputStream;

/**
 * connection interface it knows how to connect and disconnect to device
 * @author LAP
 * @see org.extdev.protocol
 */
public interface Connection {
	/**
	 * This method connect to your external device.
	 * @throws Exception 
	 */
	public void connect() throws Exception;
	/**
	 * This method disconnect from your external device.
	 * @throws Exception 
	 */
	public void disconnect() throws Exception;
	
	public boolean isConnected();
	
	public InputStream getInputStream() throws Exception;
}
